@import url('https://fonts.googleapis.com/css?family=Work+Sans:300');

:root {
    --fg: #fff;
    --bg: #343338;
}

[v-cloak] { display:none; }

.tools {
    flex: none;
    padding: 2rem;
    color: #fff;

    div {
        display: flex;
        position: relative;

        + div {
            margin-top: .5em;
        }
    }

    .steps {
        position: absolute;
        top: 50%;
        left: 15vh;
        transform: translate(25%, -50%);
        padding: 0;
        margin: 0;
    }
}

.colors {
    flex: 1;
    display: flex;
    flex-direction: column;
    font-size: .85em;
    height: 100vh;
    overflow: auto;

    .color {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 2rem;
        transition: 300ms linear;
    }
}

.vertical-range {
    display: flex;
    align-items: center;
    width: 30vh;
    height: 30vh;
    transform: rotate(-90deg);
}

input {
    margin: 0;
    padding: 0 .5em;
    font-size: inherit;
    font-family: inherit;
    border: none;
    width: 7em;
    outline: none;
    border-radius: 0 1em 1em 0;
    background: var(--fg);
    color: var(--bg);
    flex: 1;

    &[type=color] {
        flex: none;
        padding: 0;
        width: 2em;
        height: 2em;
        border-radius: 1em 0 0 1em;

        &::-moz-color-swatch {
            border: none;
            border-radius: 1em;
            transform: scale(.75);
        }

        &::-webkit-color-swatch {
            border: none;
            border-radius: 1em;
        }
        &::-webkit-color-swatch-wrapper {
            padding: .25em;
            border-radius: 1em;
        }
    }

    &[type=range] {
        appearance: none;
        outline: none;
        display: inline-block;
        padding: 0;
        margin: 0;
        border: 0;
        width: 100%;
        height: .25em;
        border-radius: 1em;
        cursor: pointer;
        font-size: inherit;
        background: var(--fg);

    // MOZILLA
    &::-moz-range-track {
        appearance: none;
        background: var(--fg);
        outline: none;
    }
        &::-moz-focus-outer {
            border: 0;
        }
        &::-moz-range-thumb {
            appearance: none;
            width: 1em;
            height: 1em;
            border: none;
            border-radius: 1em;
            box-shadow: 0 0 0 .3em var(--bg);
            background: var(--fg);
            transform: scale(1);
            transition: transform .3s ease-out;
        }
        &::-moz-range-thumb:focus,
        &::-moz-range-thumb:active {
            appearance: none;
            transform: scale(.85);
        }

    // BLINK/WEBKIT
    &::-webkit-slider-thumb {
        appearance: none;
        width: 1em;
        height: 1em;
        border: none;
        border-radius: 1em;
        box-shadow: 0 0 0 .3em var(--bg);
        background: var(--fg);
        transform: scale(1);
        transition: transform .3s ease-out;
    }
        &::-webkit-slider-thumb:focus,
        &::-webkit-slider-thumb:active {
            appearance: none;
            transform: scale(.85);
        }
    }
}

// boring
   *, *::before, *::after {box-sizing: border-box;}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    background: var(--bg);
    font-family: 'Work Sans', sans-serif;
}

main {
    flex: 1;
    display: flex;
    font-size: calc(1em + 1vmin);
}

// test for Safari
// @supports (-webkit-backdrop-filter: blur(2em)) {
//   input[type=color] {
//     display:none;
//   }
//   input {
//     border-radius: 1em;
//     padding: .25em .5em;
//     width: 9em;
//   }
// }